<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8"/>
    <title>碳达人</title>

    <link rel="stylesheet" th:href="@{/libs/bootstrapvalidator/css/bootstrapValidator.min.css}"/>
    <link rel="stylesheet" th:href="@{/libs/fireui/accordion.css}"/>
    <link rel="stylesheet" th:href="@{/libs/fireui/table.css}"/>
    <link rel="stylesheet" th:href="@{/cweb/css/calculator.css}"/>
    <link rel="stylesheet" th:href="@{/cweb/css/customer-20211209.css}"/>
</head>
<body>
<header id="header">
    <div th:replace="home/cfragments/navbar :: cnavbar"></div>
</header>
<span th:if="${CURRENT_CUSTOMER == null}">
    <span id="no_login"></span>
</span>
<div class="main-container">
    <div class="content">
        <!-- 算法三-->
        <form class="form-horizontal" id="eghgThreeForm">
            <div class="calc_two_main" style="min-height: 2095px;border-left:  1px solid #C7C7C7;">
                <div class="calc_two_content calc_two_main_left"  style="min-height: 2095px;border-right: 1px solid #C7C7C7;border-left: 0">
                    <div id="accordionThree" role="tablist" class="fire_accordion_common fire_accordion1">
                        <div class="card">
                            <a data-toggle="collapse" class="title" href="#collapseThree" aria-expanded="true">
                                <i class="fa fa-angle-down"></i>E<sub>CO<sub>2</sub>_燃烧</sub>：化石燃料燃烧产生的CO<sub>2</sub>排放，单位为t
                            </a>
                            <div id="collapseThree" class="collapse in" data-parent="#accordionThree">
                                <div class="card-body" style="line-height:40px">
                                    </br>AD<sub>i</sub>：化石燃料i用作燃料燃烧的消费量，对固体和液体燃料以t为单位，对气体燃料以10<sup>4</sup>Nm<sup>3</sup>为单位
                                    </br>OF<sub>i</sub>：化石燃料的碳氧化率，单位为%
                                    </br>NCV<sub>i</sub>：化石燃料品种i的低位发热量，对固体和液体燃料以GJ/t为单位，对气体燃料以GJ/10<sup>4</sup>Nm<sup>3</sup>为单位
                                    </br>EF<sub>i</sub>：燃料品种i的单位热值含碳量，单位为t/GJ
                                </div>
                            </div>
                        </div>
                        <div class="card">
                            <a data-toggle="collapse" class="title" href="#collapseyl" aria-expanded="true">
                                <i class="fa fa-angle-down"></i>E<sub>CO<sub>2</sub>_原料</sub>：化石燃料和其他碳氢化合物用作原材料生产的CO<sub>2</sub>排放，单位为t
                            </a>
                            <div id="collapseyl" class="collapse in" data-parent="#accordionThree">
                                <div class="card-body" style="line-height:40px">
                                    </br>AD<sub>r</sub>：原材料r的投入量，对固体和液体原料以t为单位，对气体原料以10<sup>4</sup>Nm<sup>3</sup>为单位
                                    </br>CC<sub>r</sub>：原材料r的含碳量，对固体和液体原料以t为单位，对气体原料以t /10<sup>4</sup>Nm<sup>3</sup>为单位
                                    </br>AD<sub>p</sub>：含碳产品p的产量，对固体和液体燃料以t为单位，对气体产品以10<sup>4</sup>Nm<sup>3</sup>为单位
                                    </br>CC<sub>p</sub>：含碳产品p的含碳量，对固体和液体燃料以t为单位，对气体产品以t/10<sup>4</sup>Nm<sup>3</sup>为单位
                                    </br>AD<sub>w</sub>：含碳废物w的输出量，单位为t
                                    </br>CC<sub>w</sub>：含碳废物w的含碳量，单位为t
                                </div>
                            </div>
                        </div>
                        <div class="card">
                            <a data-toggle="collapse" class="title" href="#collapsetsy" aria-expanded="true">
                                <i class="fa fa-angle-down"></i>E<sub>CO<sub>2</sub>_碳酸盐</sub>：碳酸盐使用过程产生的CO<sub>2</sub>排放，单位为t
                            </a>
                            <div id="collapsetsy" class="collapse in" data-parent="#accordionThree">
                                <div class="card-body" style="line-height:40px">
                                    </br>AD<sub>i</sub>：碳酸盐i用于原材料、助溶剂和脱硫剂的总消费量，单位为t
                                    </br>EF<sub>i</sub>：碳酸盐i的CO<sub>2</sub>排放因子，单位为t
                                    </br>PUR<sub>i</sub>：碳酸盐i的纯度，单位为%
                                </div>
                            </div>
                        </div>
                        <div class="card">
                            <a data-toggle="collapse" class="title" href="#collapsexs" aria-expanded="true">
                                <i class="fa fa-angle-down"></i>E<sub>CO<sub>2</sub>_硝酸</sub>：硝酸生成过程的N<sub>2</sub>O排放，单位为t
                            </a>
                            <div id="collapsexs" class="collapse in" data-parent="#accordionThree">
                                <div class="card-body" style="line-height:40px">
                                    </br>AD<sub>j</sub>：生产工艺j的硝酸产量，单位为t
                                    </br>EF<sub>j</sub>：生成工艺j的N<sub>2</sub>O生成因子，单位为kg
                                    </br>η：尾气处理设备类型的N<sub>2</sub>O去除效率，单位为%
                                    </br>μ：尾气处理设备类型的使用率，单位为%
                                </div>
                            </div>
                        </div>
                        <div class="card">
                            <a data-toggle="collapse" class="title" href="#collapseyes" aria-expanded="true">
                                <i class="fa fa-angle-down"></i>E<sub>CO<sub>2</sub>_己二酸</sub>：己二酸生成过程的N<sub>2</sub>O排放，单位为t
                            </a>
                            <div id="collapseyes" class="collapse in" data-parent="#accordionThree">
                                <div class="card-body" style="line-height:40px">
                                    </br>AD<sub>j</sub>：生产工艺j的己二酸产量，单位为t
                                    </br>EF<sub>j</sub>：生成工艺j的己二酸生成因子，单位为kg
                                    </br>η：尾气处理设备类型的己二酸去除效率，单位为% 
                                    </br>μ：尾气处理设备类型的使用率，单位为%
                                </div>
                            </div>
                        </div>
                        <div class="card">
                            <a data-toggle="collapse" class="title" href="#collapseThreeq" aria-expanded="true">
                                <i class="fa fa-angle-down"></i> Q：企业边界回收且外供的CO<sub>2</sub>气体体积，单位为万<sup>4</sup>Nm<sup>3</sup>
                            </a>
                        </div>
                        <div class="card">
                            <a data-toggle="collapse" class="title" href="#collapseThreepurco2" aria-expanded="true">
                                <i class="fa fa-angle-down"></i>PURCO<sub>2</sub>：CO<sub>2</sub>外供气体的纯度，单位为%
                            </a>
                        </div>
                        <div class="card">
                            <a data-toggle="collapse" class="title" href="#collapseThreeaddl" aria-expanded="true">
                                <i class="fa fa-angle-down"></i>AD<sub>电力</sub>：企业净购入的电力消费，单位为MWh
                            </a>
                        </div>
                        <div class="card">
                            <a data-toggle="collapse" class="title" href="#collapseThreeefdl" aria-expanded="true">
                                <i class="fa fa-angle-down"></i>EF<sub>电力</sub>：企业净购入的热力消费，单位为GJ
                            </a>
                        </div>
                        <div class="card">
                            <a data-toggle="collapse" class="title" href="#collapseThreeadrl" aria-expanded="true">
                                <i class="fa fa-angle-down"></i>AD<sub>热力</sub>：电力供应的CO<sub>2</sub>排放因子，单位为t/MWh
                            </a>
                        </div>
                        <div class="card">
                            <a data-toggle="collapse" class="title" href="#collapseThreeefrl" aria-expanded="true">
                                <i class="fa fa-angle-down"></i>EF<sub>热力</sub>：热力供应的CO<sub>2</sub>排放因子，单位为t/GJ
                            </a>
                        </div>
                    </div>
                </div>
                <div class="calc_two_content calc_two_main_right"  style="min-height: 2095px;border-left: 0">
                    <div class="calc_top calc_two_main_right_content">
                        <div class="form-group">
                            <div class="col-sm-4">
                            </div>
                            <div class="col-sm-7">
                                <input type="text" class="form-control" name="eco2Burn" readonly id="eco2BurnThree" placeholder="请输入企业净购入的热力消费引起的CO2排放">
                            </div>
                        </div>
                    </div>
                    <div class="calc_table calc_two_main_right_content" style="height: 276px">
                        <div class="table_style1 table_style2 table-responsive">
                            <table class="table table-striped">
                                <thead>
                                <tr>
                                    <th style="width: 20%">
                                        <button type="button" class="btn btn-primary"
                                                onclick="addEco2BurnThree()">添加
                                        </button>
                                    </th>
                                    <th style="width: 20%">AD<sub>i</sub></th>
                                    <th style="width: 20%">OF<sub>i</sub></th>
                                    <th style="width: 20%">NCV<sub>i</sub></th>
                                    <th style="width: 20%">EF<sub>i</sub></th>
                                </tr>
                                </thead>
                                <tbody id="eco2BurnTbodyThree">

                                </tbody>
                            </table>
                        </div>
                    </div>
                    <div class="calc_top calc_two_main_right_content">
                        <div class="form-group">
                            <div class="col-sm-4">
                            </div>
                            <div class="col-sm-7">
                                <input type="text" class="form-control" name="eco2RawMaterial" readonly id="eco2RawMaterialThree" placeholder="化石燃料和其他碳氢化合物用作原材料生产的CO2排放">
                            </div>
                        </div>
                    </div>
                    <div class="calc_table calc_two_main_right_content" style="height: 335px">
                        <div class="col-sm-4" style="padding: 0;">
                            <div class="table_style1 table_style2 table-responsive">
                                <table class="table table-striped">
                                    <thead>
                                    <tr>
                                        <th style="width: 34%;">
                                            <button type="button" class="btn btn-primary" style="width: 40px;padding: 0"
                                                    onclick="addADrCCrThree()">添加
                                            </button>
                                        </th>
                                        <th style="width: 33%;">AD<sub>r</sub></th>
                                        <th style="width: 33%;">CC<sub>r</sub></th>
                                    </tr>
                                    </thead>
                                    <tbody id="adrccrBodyThree">

                                    </tbody>
                                </table>
                            </div>
                        </div>
                        <div class="col-sm-4" style="padding: 0;">
                            <div class="table_style1 table_style2 table-responsive">
                                <table class="table table-striped">
                                    <thead>
                                    <tr>
                                        <th style="width: 34%;">
                                            <button type="button" class="btn btn-primary" style="width: 40px;padding: 0"
                                                    onclick="addADpCCpThree()">添加
                                            </button>
                                        </th>
                                        <th style="width: 33%;">AD<sub>p</sub></th>
                                        <th style="width: 33%;">CC<sub>p</sub></th>
                                    </tr>
                                    </thead>
                                    <tbody id="adpccpBodyThree">

                                    </tbody>
                                </table>
                            </div>
                        </div>
                        <div class="col-sm-4" style="padding: 0;">
                            <div class="table_style1 table_style2 table-responsive">
                                <table class="table table-striped">
                                    <thead>
                                    <tr>
                                        <th style="width: 34%;">
                                            <button type="button" class="btn btn-primary btn-sm" style="width: 40px;padding: 0"
                                                    onclick="addADwCCwThree()">添加
                                            </button>
                                        </th>
                                        <th style="width: 33%;">AD<sub>w</sub></th>
                                        <th style="width: 33%;">CC<sub>w</sub></th>
                                    </tr>
                                    </thead>
                                    <tbody id="adwccwBodyThree">

                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>

                    <div class="calc_top calc_two_main_right_content">
                        <div class="form-group">
                            <div class="col-sm-4">
                            </div>
                            <div class="col-sm-7">
                                <input type="text" class="form-control" name="eco2Nitrate" readonly id="eco2NitrateThree" placeholder="请输入企业碳酸盐使用过程产生的CO2排放">
                            </div>
                        </div>
                    </div>
                    <div class="calc_table calc_two_main_right_content" style="height: 187px">
                        <div class="table_style1 table_style2 table-responsive">
                            <table class="table table-striped">
                                <thead>
                                <tr>
                                    <th style="width: 25%;">
                                        <button type="button" class="btn btn-primary"
                                                onclick="addEco2NitrateThree()">添加
                                        </button>
                                    </th>
                                    <th style="width: 25%;">AD<sub>i</sub></th>
                                    <th style="width: 25%;">EF<sub>i</sub></th>
                                    <th style="width: 25%;">PUR<sub>i</sub></th>
                                </tr>
                                </thead>
                                <tbody id="eco2NitrateTbodyThree">

                                </tbody>
                            </table>
                        </div>
                    </div>
                    <div class="calc_top calc_two_main_right_content">
                        <div class="form-group">
                            <div class="col-sm-4">
                            </div>
                            <div class="col-sm-7">
                                <input type="text" class="form-control" name="en2oNitricAcid" readonly id="en2oNitricAcidThree" placeholder="请输入企业硝酸生成过程的N20排放">
                            </div>
                        </div>
                    </div>
                    <div class="calc_table calc_two_main_right_content" style="height: 225px">
                        <div class="table_style1 table_style2 table-responsive">
                            <table class="table table-striped">
                                <thead>
                                <tr>
                                    <th style="width: 20%">
                                        <button type="button" class="btn btn-primary" onclick="en2oNitricAcidTbodyThree()">添加</button>
                                    </th>
                                    <th style="width: 20%">AD<sub>j</sub></th>
                                    <th style="width: 20%">EF<sub>j</sub></th>
                                    <th style="width: 20%">η</th>
                                    <th style="width: 20%">μ</th>
                                </tr>
                                </thead>
                                <tbody id="en2oNitricAcidTbodyThree">

                                </tbody>
                            </table>
                        </div>
                    </div>
                    <div class="calc_top calc_two_main_right_content">
                        <div class="form-group">
                            <div class="col-sm-4">
                            </div>
                            <div class="col-sm-7">
                                <input type="text" class="form-control" name="en2oAdipicAcid" readonly
                                       id="en2oAdipicAcidThree"
                                       placeholder="请输入企业二酸生产过程的N2O排放">
                            </div>
                        </div>
                    </div>
                    <div class="calc_table calc_two_main_right_content" style="height: 292px">
                        <div class="table_style1 table_style2 table-responsive">
                            <table class="table table-striped">
                                <thead>
                                <tr>
                                    <th style="width: 20%;">
                                        <button type="button" class="btn btn-primary"
                                                onclick="en2oAdipicAcidTbodyThree()">添加
                                        </button>
                                    </th>
                                    <th style="width: 20%;">AD<sub>j</sub></th>
                                    <th style="width: 20%;">EF<sub>j</sub></th>
                                    <th style="width: 20%;">η</th>
                                    <th style="width: 20%;">μ</th>
                                </tr>
                                </thead>
                                <tbody id="en2oAdipicAcidTbodyThree">

                                </tbody>
                            </table>
                        </div>
                    </div>
                    <div class="calc_center calc_two_main_right_content">
                        <div class="form-group">
                            <label for="qThree" class="col-sm-3 control-label">Q</label>
                            <div class="col-sm-3">
                                <input type="text" class="form-control" name="q" id="qThree">
                            </div>
                            <label for="purCo2Three" class="col-sm-3 control-label">PURCO<sub>2</sub></label>
                            <div class="col-sm-3">
                                <input type="text" class="form-control" name="purCo2" id="purCo2Three">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="adPowerThree" class="col-sm-3 control-label">AD<sub>电力</sub></label>
                            <div class="col-sm-3">
                                <input type="text" class="form-control" name="adPower" id="adPowerThree">
                            </div>
                            <label for="efPowerThree" class="col-sm-3 control-label">EF<sub>电力</sub></label>
                            <div class="col-sm-3">
                                <input type="text" class="form-control" name="efPower" id="efPowerThree">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="adHeatThree" class="col-sm-3 control-label">AD<sub>热力</sub></label>
                            <div class="col-sm-3">
                                <select class="form-control" name="adHeat" id="adHeatThree">
                                    <option value="0">请选择</option>
                                    <option value="0.9419">0.9419(华北电网)</option>
                                    <option value="1.0826">1.0826(东北电网)</option>
                                    <option value="0.7921">0.7921(华东电网)</option>
                                    <option value="0.8587">0.8587(华中电网)</option>
                                    <option value="0.8922">0.8922(西北电网)</option>
                                    <option value="0.8042">0.8042(南方电网)</option>
                                </select>
                            </div>
                            <label for="efHeatThree" class="col-sm-3 control-label">EF<sub>热力</sub></label>
                            <div class="col-sm-3">
                                <input type="text" class="form-control" name="efHeat" id="efHeatThree" value="0.11"
                                       readonly>
                            </div>
                        </div>


                    </div>
                    <div style="width: 100%; float: left">
                        <div class="calc_line"></div>
                    </div>
                    <div class="calc_bottom calc_two_main_right_content">
                        <button class="btn btn-info waves-effect waves-light btn-sm" style="float: left"
                                onclick="getEco2BurnThree()"
                                type="button">计算&nbsp;&nbsp;&nbsp;&nbsp;E<sub>GHG</sub>
                        </button>
                        <div id="eghgThreeResult"></div>
                    </div>
                </div>
            </div>
            <div class="calc_one_other">
                <div class="calc_one_other_left calc_one_other_main" id="calculator_one">
                    <div class="title">个人用户使用</div>
                    <div class="content">简易版</div>
                </div>
                <div class="calc_one_other_right calc_one_other_main" id="calculator_two">
                    <div class="title">企业用户专享</div>
                    <div class="content">高级版</div>
                </div>
            </div>
        </form>
    </div>
</div>
<div>
    <div th:replace="home/cfragments/float_right :: cfloatright"></div>
</div>
<div class="footer">
    <div th:replace="home/cfragments/footer :: cfooter"></div>
</div>
<script th:src="@{/libs/bootstrap/bootstrap.min.js}"></script>
<script th:src="@{/libs/bootstrapvalidator/js/bootstrapValidator.js}"></script>
<script>

    $(function () {
        $('#tdr').addClass('th-bg');
        if ($('#no_login').length == 1) {
            userLogin();
        }

        $('#calculator_one').click(function () {
            window.location.href = '/blog/calculator/one';
        });

        $('#calculator_two').click(function () {
            window.location.href = '/blog/calculator/two';
        });


        $('#eghgThreeForm').bootstrapValidator({
            message: 'This value is not valid',
            feedbackIcons: {
                valid: 'glyphicon glyphicon-ok',
                invalid: 'glyphicon glyphicon-remove',
                validating: 'glyphicon glyphicon-refresh'
            },
            fields: {
                q: {
                    message: '企业边界回收且外供的CO2气体体积验证失败',
                    validators: {
                        notEmpty: {
                            message: '请输入该企业边界回收且外供的CO2气体体积，单位为万Nm3'
                        },
                        regexp: {
                            regexp: /^[0-9]+\.[0-9]{2}$/,
                            message: '只能输入保留两位小数的数字'
                        }
                    }
                },
                purCo2: {
                    message: 'CO2外供气体的纯度验证失败',
                    validators: {
                        notEmpty: {
                            message: '请输入CO2外供气体的纯度，单位为%'
                        },
                        regexp: {
                            regexp: /^[0-9]+\.[0-9]{2}$/,
                            message: '只能输入保留两位小数的数字'
                        }
                    }
                },
                adPower: {
                    message: '企业净购入的电力消费验证失败',
                    validators: {
                        notEmpty: {
                            message: '请输入企业净购入的电力消费，单位为MWh'
                        },
                        regexp: {
                            regexp: /^[0-9]+\.[0-9]{2}$/,
                            message: '只能输入保留两位小数的数字'
                        }
                    }
                },
                efPower: {
                    message: '企业净购入的热力消费验证失败',
                    validators: {
                        notEmpty: {
                            message: '请输入企业净购入的热力消费，单位为 GJ（百万千焦）'
                        },
                        regexp: {
                            regexp: /^[0-9]+\.[0-9]{2}$/,
                            message: '只能输入保留两位小数的数字'
                        }
                    }
                }
            }
        });

        $('.one').mouseover(function () {
            enterCard($(this));
        });

        $('.one').mouseout(function () {
            outCard($(this));
        });

        $('.two').mouseover(function () {
            enterCard($(this));
        });

        $('.two').mouseout(function () {
            outCard($(this));
        });

        $('.three').mouseover(function () {
            enterCard($(this));
        });

        $('.three').mouseout(function () {
            outCard($(this));
        });
    });

    function enterCard(obj) {
        //边框变蓝色
        obj.find('div').addClass('card-main-mouseenter');
        obj.find('button').addClass('card-button-mouseenter')
    }

    function outCard(obj) {
        obj.find('div').removeClass('card-main-mouseenter')
        obj.find('button').removeClass('card-button-mouseenter')
    }

    function addEco2BurnThree() {
        var delTd = '<td></td>';
        var adiTd = '<td><input type="text" class="form-control" name="fossilFuelAdi" onkeyup="this.value=this.value.replace(/^(\\-)*(\\d+)\\.(\\d\\d).*$/,\'$1$2.$3\')"></td>';
        var ofiTd = '<td colspan="1">' +
            '<select class="form-control" name="ofi">' +
            '<option value="0">请选择</option>' +
            '<option value="0.98">0.98(液体)</option>' +
            '<option value="0.99">0.99(气体)</option>' +
            '<option value="0.94">0.94(无烟煤)</option>' +
            '<option value="0.93">0.93(烟煤)</option>' +
            '<option value="0.96">0.96(褐煤)</option>' +
            '<option value="0.93">0.93(焦炭)</option>' +
            '<option value="0.90">0.90(其他)</option>' +
            '</select></td>';
        var ncviTd = '<td><input type="text" class="form-control" name="ncvi" onkeyup="this.value=this.value.replace(/^(\\-)*(\\d+)\\.(\\d\\d).*$/,\'$1$2.$3\')"></td>';
        var efiTd = '<td><input type="text" class="form-control" name="fuelVarietyEfi" onkeyup="this.value=this.value.replace(/^(\\-)*(\\d+)\\.(\\d\\d).*$/,\'$1$2.$3\')"></td>';
        $('#eco2BurnTbodyThree').append('<tr>' + delTd + '' + adiTd + '' + ofiTd + '' + ncviTd + '' + efiTd + '</tr>');
    }

    function addADrCCrThree() {
        var delTd = '<td></td>';
        var adrTd = '<td><input type="text" class="form-control" name="adr" onkeyup="this.value=this.value.replace(/^(\\-)*(\\d+)\\.(\\d\\d).*$/,\'$1$2.$3\')"></td>';
        var ccrTd = '<td><input type="text" class="form-control" name="ccr" onkeyup="this.value=this.value.replace(/^(\\-)*(\\d+)\\.(\\d\\d).*$/,\'$1$2.$3\')"></td>';
        $('#adrccrBodyThree').append('<tr>' + delTd + '' + adrTd + '' + ccrTd + '</tr>');
    }

    function addADpCCpThree() {
        var delTd = '<td></td>';
        var adpTd = '<td><input type="text" class="form-control" name="adp" onkeyup="this.value=this.value.replace(/^(\\-)*(\\d+)\\.(\\d\\d).*$/,\'$1$2.$3\')"></td>';
        var ccpTd = '<td><input type="text" class="form-control" name="ccp" onkeyup="this.value=this.value.replace(/^(\\-)*(\\d+)\\.(\\d\\d).*$/,\'$1$2.$3\')"></td>';
        $('#adpccpBodyThree').append('<tr>' + delTd + '' + adpTd + '' + ccpTd + '</tr>');
    }

    function addADwCCwThree() {
        var delTd = '<td></td>';
        var adwTd = '<td><input type="text" class="form-control" name="adw" onkeyup="this.value=this.value.replace(/^(\\-)*(\\d+)\\.(\\d\\d).*$/,\'$1$2.$3\')"></td>';
        var ccwTd = '<td><input type="text" class="form-control" name="ccw" onkeyup="this.value=this.value.replace(/^(\\-)*(\\d+)\\.(\\d\\d).*$/,\'$1$2.$3\')"></td>';
        $('#adwccwBodyThree').append('<tr>' + delTd + '' + adwTd + '' + ccwTd + '</tr>');
    }

    function addEco2NitrateThree() {
        var delTd = '<td></td>';
        var adiTd = '<td><input type="text" class="form-control" name="nitrateAdi" onkeyup="this.value=this.value.replace(/^(\\-)*(\\d+)\\.(\\d\\d).*$/,\'$1$2.$3\')"></td>';
        var efiTd = '<td><input type="text" class="form-control" name="nitrateEfi" onkeyup="this.value=this.value.replace(/^(\\-)*(\\d+)\\.(\\d\\d).*$/,\'$1$2.$3\')"></td>';
        var puriTd = '<td><input type="text" class="form-control" name="puri" onkeyup="this.value=this.value.replace(/^(\\-)*(\\d+)\\.(\\d\\d).*$/,\'$1$2.$3\')"></td>';
        $('#eco2NitrateTbodyThree').append('<tr>' + delTd + '' + adiTd + '' + efiTd + '' + puriTd + '</tr>');
    }

    function en2oNitricAcidTbodyThree() {
        var delTd = '<td></td>';
        var adjTd = '<td><input type="text" class="form-control" name="nitricAcidAdj" onkeyup="this.value=this.value.replace(/^(\\-)*(\\d+)\\.(\\d\\d).*$/,\'$1$2.$3\')"></td>';
        var efjTd = '<td><input type="text" class="form-control" name="nitricAcidEfj" onkeyup="this.value=this.value.replace(/^(\\-)*(\\d+)\\.(\\d\\d).*$/,\'$1$2.$3\')"></td>';
        var nscrTd = '<td><input type="text" class="form-control" name="nitricAcidNscr" onkeyup="this.value=this.value.replace(/^(\\-)*(\\d+)\\.(\\d\\d).*$/,\'$1$2.$3\')"></td>';
        var otherTd = '<td><input type="text" class="form-control" name="nitricAcidOther" onkeyup="this.value=this.value.replace(/^(\\-)*(\\d+)\\.(\\d\\d).*$/,\'$1$2.$3\')"></td>';
        $('#en2oNitricAcidTbodyThree').append('<tr>' + delTd + '' + adjTd + '' + efjTd + '' + nscrTd + '' + otherTd + '</tr>');
    }

    function en2oAdipicAcidTbodyThree() {
        var delTd = '<td></td>';
        var adjTd = '<td><input type="text" class="form-control" name="oxalicAcidAdj" onkeyup="this.value=this.value.replace(/^(\\-)*(\\d+)\\.(\\d\\d).*$/,\'$1$2.$3\')"></td>';
        var efjTd = '<td><input type="text" class="form-control" name="oxalicAcidEfj" onkeyup="this.value=this.value.replace(/^(\\-)*(\\d+)\\.(\\d\\d).*$/,\'$1$2.$3\')"></td>';
        var nscrTd = '<td><input type="text" class="form-control" name="oxalicAcidNscr"></td>';
        var otherTd = '<td><input type="text" class="form-control" name="oxalicAcidOther" onkeyup="this.value=this.value.replace(/^(\\-)*(\\d+)\\.(\\d\\d).*$/,\'$1$2.$3\')"></td>';
        $('#en2oAdipicAcidTbodyThree').append('<tr>' + delTd + '' + adjTd + '' + efjTd + '' + nscrTd + '' + otherTd + '</tr>');
    }

    function getEco2BurnThree() {
        var flag = $('#eghgThreeForm').data('bootstrapValidator').isValid();
        if (flag) {
            Core.postAjax("/blog/eghg/api/eghgThree", $('#eghgThreeForm').serialize(), function (data) {
                $('#eghgThreeResult').html(data.data.result)
                $('#eco2BurnThree').val(data.data.eco2Burn);
                $('#eco2RawMaterialThree').val(data.data.eco2RawMaterial);
                $('#eco2NitrateThree').val(data.data.eco2Nitrate);
                $('#en2oNitricAcidThree').val(data.data.en2oNitricAcid);
            });
        }
    }
</script>
</body>
</html>